package com.ruoyi.system.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户列表对象 car_user
 * 
 * @author mawei
 * @date 2024-09-09
 */
public class CarUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private CarUser carUser;

    public CarUser getCarUser() {
        return carUser;
    }

    public void setCarUser(CarUser carUser) {
        this.carUser = carUser;
    }

    /** 用户ID(主键) */
    @Excel(name = "用户ID(主键)")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 昵称 */
    private String nickName;

    /** 手机号(不能为空) */
    @Excel(name = "手机号(不能为空)")
    private String userPhone;

    /** 邮箱 */
    private String userEmail;

    /** 密码 */
    private String userPassword;

    /** 头像URL */
    private String userAvatar;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userRegTime;

    /** 默认收货地址ID */
    private Long userDefaultAddrId;

    /** 状态 */
    private Long userStatus;

    /** 是否删除（0: 未删除, 1: 已删除） */
    private Long userDeleted;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setUserPhone(String userPhone) 
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone() 
    {
        return userPhone;
    }
    public void setUserEmail(String userEmail) 
    {
        this.userEmail = userEmail;
    }

    public String getUserEmail() 
    {
        return userEmail;
    }
    public void setUserPassword(String userPassword) 
    {
        this.userPassword = userPassword;
    }

    public String getUserPassword() 
    {
        return userPassword;
    }
    public void setUserAvatar(String userAvatar) 
    {
        this.userAvatar = userAvatar;
    }

    public String getUserAvatar() 
    {
        return userAvatar;
    }
    public void setUserRegTime(Date userRegTime) 
    {
        this.userRegTime = userRegTime;
    }

    public Date getUserRegTime() 
    {
        return userRegTime;
    }
    public void setUserDefaultAddrId(Long userDefaultAddrId) 
    {
        this.userDefaultAddrId = userDefaultAddrId;
    }

    public Long getUserDefaultAddrId() 
    {
        return userDefaultAddrId;
    }
    public void setUserStatus(Long userStatus) 
    {
        this.userStatus = userStatus;
    }

    public Long getUserStatus() 
    {
        return userStatus;
    }
    public void setUserDeleted(Long userDeleted) 
    {
        this.userDeleted = userDeleted;
    }

    public Long getUserDeleted() 
    {
        return userDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("userPhone", getUserPhone())
            .append("userEmail", getUserEmail())
            .append("userPassword", getUserPassword())
            .append("userAvatar", getUserAvatar())
            .append("userRegTime", getUserRegTime())
            .append("userDefaultAddrId", getUserDefaultAddrId())
            .append("userStatus", getUserStatus())
            .append("userDeleted", getUserDeleted())
            .toString();
    }
}

